import type {
  getMusicLyricRes,
  getMusicUrlParams,
  getMusicUrlRes,
} from "@/types/music";
import request from "@/utils/request";
export const getMusicUrl = (params: getMusicUrlParams) => {
  return request<getMusicUrlRes>({
    method: "get",
    url: "/song/url",
    params,
  });
};
export const getMusicLyric = (params: getMusicUrlParams) => {
  return request<getMusicLyricRes>({
    method: "get",
    url: "/lyric",
    params,
  });
};
